home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
015a
/
yesno21.zip
/
YESNO21.TXT
< prev
next >
Wrap
Text File
|
1993-03-29
|
8KB
|
172 lines
YESORNO
Decision Utility
Version 2.1 3-19-93
(c) 1992, 1993 DYNAMOUS Software.
All Rights Reserved.
47 Kristin Dr.
Rochester, NY 14624
Concept:
Work - When turning on the PC, we wanted to choose whether or not we logged
into the NOVELL Network and load WINDOWS.
BBS - We wrote 2 separate batch files for each set of utilities used by
the BBS. One batch file contains the decision utility so we could make
the appropriate decisions. The other batch file omits the decision
utility, to enhance unattended nightly maintenance.
I tried several other utilities that provided the ability to react to a
decision. They all fell short for one or more of the following reasons:
■ The prompt had to be written as an ECHO command in the batch file and
ECHO OFF had to precede the prompt.
■ The programs required user interaction so they could not be used when
the PC was unattended.
■ The batch file would need to use the DOS CLS command to clear the
screen if necessary.
■ No tone was heard to alert the users to a decision prompt.
■ The prompts lacked any color or frames to set them apart from the other
text displayed.
Introduction:
Then YESORNO was written by DYNAMOUS Software to put more power in your
batch files, here are the advantages of YESORNO:
■ Displays your text without the ECHO commands from the batch file. The
status of ECHO (ON/OFF) has no effect on YESORNO prompts.
■ A default answer is used after a selectable period of time, to automate
unattended operation.
■ An optional switch clears the screen so the user can clearly see the
prompt.
■ Beeps are available for the prompts and input errors.
■ Background and text colors are available to help make the prompt more
noticeable.
■ Single and double frames are available to make the prompts more
professional looking.
■ Help is built into the program and accessed with the "YESORNO /?"
command.
■ A configuration program is available to store your default
configuration and enable the registered options.
Optional Usage:
The following options may be used on the command line to change the
defaults of YESORNO. This will allow you to use YESORNO for your specific
needs.
C:\> YESORNO /Y /15 /t:"Text comment" /tc:n /tb:n /bt:x /be:x /f:x
Where:
/Y or /N The answer to the prompt if no key is pressed before the
time-out.
This is a required option. You must use either /Y or /N or
the program will display the usage screen.
/nn The amount of time in seconds for the user to enter a
response to the prompt.
/0 = never time out, maximum = 9999
This is a required option. You must enter the time to wait
for the user to reply or /0 or the program will display the
usage screen.
/t:"Text Prompt" The text prompt to be displayed on the screen for
the user.
If the text contains spaces, you must enclose the text in
double (") quotes.
Example -- /t:"Do you want to Log In to the Network [Y/N]?"
Any text not proceeded with a / will be displayed as
entered, even if it is not contiguous. This is a required
option. You must use a text prompt or the program will
display the usage screen.
/clr Optional argument to clear the screen before the
text is displayed.
Default: If /clr is not used the screen will scroll under
normal DOS conditions.
/tc:n The color of the text prompt.*
Where n is a number between 0 and 15 or 255. See table for
values.
Example - /tc:14 { The text color would be yellow. }
Default - the current DOS text color.
/tb:n The color of the background for prompt.*
Where n is a number between 0 and 7 or 255. See table for
values.
Example - /tb:1 { The background color would be blue. }
Default - the current DOS background color.
/bt:x Create a tone to alert the user to the prompt.*
Where x is 'n' for no and 'y' for yes.
Example - /bt:y { A tone will be heard when the prompt is
displayed. }
Default - No tone on prompt message.
/be:x Create a tone to alert the user that an incorrect
response was entered.*
Where x is 'n' for no and 'y' for yes.
Example - /be:y { A tone will be heard when an incorrect
response is entered. }
Default - No tone on an incorrect response.
/f:x Frame the text prompt with a border.*
Where x is 's' for a single, 'd' is for a double border and
'n' is for no border.
Example - /f:s { The text prompt will be framed with a
single border.
Default - no border around the text prompt.
Note: Item marked with the * are only availible after registering YESORNO
with DYNAMOUS Software. You will also receive a configuration program to
store your default configuration and enable the registered options.
Colors:
┌──────────────┬─────────┬──────────────┬──────┐
│ Colors │ Value │ Background │ Text │
├──────────────┼─────────┼──────────────┼──────┤
│ BLACK │ 0 │ Yes │ Yes │
│ BLUE │ 1 │ Yes │ Yes │
│ GREEN │ 2 │ Yes │ Yes │
│ CYAN │ 3 │ Yes │ Yes │
│ RED │ 4 │ Yes │ Yes │
│ MAGENTA │ 5 │ Yes │ Yes │
│ BROWN │ 6 │ Yes │ Yes │
│ LIGHTGRAY │ 7 │ Yes │ Yes │
│ DARKGRAY │ 8 │ No │ Yes │
│ LIGHTBLUE │ 9 │ No │ Yes │
│ LIGHTGREEN │ 10 │ No │ Yes │
│ LIGHTCYAN │ 11 │ No │ Yes │
│ LIGHTRED │ 12 │ No │ Yes │
│ LIGHTMAGENTA │ 13 │ No │ Yes │
│ YELLOW │ 14 │ No │ Yes │
│ WHITE │ 15 │ No │ Yes │
│ NONE │ 255 │ Yes │ Yes │
└──────────────┴─────────┴──────────────┴──────┘
Shareware Notice:
You may use this utility for a 30 day trial period. If you do not register
within the trial period, please discontinue using this software.
If you like YESORNO please consider registering this utility with DYNAMOUS
Software. You will receive a registered copy of YESORNO and YESNOCFG to
personalize your copy. This enables the 'registered options' and allows you
to change the program defaults. We also include other shareware utilities
we have written.
To register, please send $5 (US) plus $3.50 (US) for media and US mailing
to DYNAMOUS Software. If you wish to avoid the media and mailing costs,
register with DYNAMOUS and then you may download your registered version
on:
"The Hat's Place BBS" (716) 594-5572 16.8K USR HST Dual Standard
Site licenses discounts are available by contacting DYNAMOUS Software for
more information.
DYNAMOUS Software -- 47 Kristin Dr. Rochester, NY 14624